﻿using System.Web.Mvc;
using Mysoft.Platform.OnlineLibrary.BaseControllers;
using Mysoft.Platform.OnlineLibrary.Models;
using Mysoft.Platform.OnlineLibrary.Repositories;

namespace Mysoft.Platform.OnlineLibrary.Controllers
{
	public class BatchLogController : BaseController
	{
		//
		// GET: /操作记录/
		private readonly BatchLogRepository<BatchLogModel> _repository = new BatchLogRepository<BatchLogModel>();

		private const int PageSize = 10;

		public ActionResult Index(int pageIndex = 1)
		{
			int totalPage = 0;
			return View(_repository.SelectAll(User.Identity.Name, pageIndex, PageSize, out totalPage));
		}
	}
}